package com.lanou3g.code0408.homework;

/**
 * Created by dllo on 18/4/8.
 */
public class Animal {
    private  int age;
    private  String name;
    private  String kind;


    // 普通方法
    public void run(){

        System.out.println("名字是"+this.name + "的" +this.kind + this.age + "岁了");

    }

    //构造方法

    public Animal(){}

    public Animal(String name,String kind,int age){
        this.age = age;
        this.name = name;
        this.kind = kind;
    }

    public Animal(String name){
        this.name = name;
    }




    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }
}
